package com.nfIt.caiJi;

/**
 * ClossName:MainTest
 * Pakage:com.nfIt.caiJi
 * Description
 *
 * @Author L
 * @Create 2024/3/20 16:07
 * @Version 2023.1.3
 */
public class MainTest {
    public static void main(String[] args) throws InterruptedException {
        Gather gather = new Gather();

        //启动线程
        gather.start();

        //设置主线程中断时间
        Thread.sleep(10000);

        // 中断线程 - 同时处理了正常运行线程和睡眠的线程
        gather.interrupt();

    }
}
